from django.urls import include, path, re_path
from comment import views

from django.urls import path
from . import views

app_name = 'comment'

urlpatterns = [
    # 发表评论
    # re_path(r'^mood/(?P<mood_id>\d+)/$', views.mood_comment, name='mood_comment'),
    path('mood/', views.send_comment, name='mood_comment'),
    # 新增代码，处理二级回复

    # views.mood_comment的GET请求
    path('mood/reply/<int:mood_id>/<int:parent_comment_id>/', views.send_comment, name='mood_comment_reply'),
    path('mood/del/<int:comment_id>/', views.delete_comment, name='delete_comment')
]